﻿<Window x:Class="frmAdminEmailTemplates"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Manage Email Template" Height="663" Width="1006" Background=" gray" WindowStyle="ThreeDBorderWindow" WindowStartupLocation="CenterOwner" ShowInTaskbar="True" MaxWidth="910" MaxHeight="663">
    <Grid Height="620" Width="879">
        <Grid.RowDefinitions>
            <RowDefinition Height="290*" />
            <RowDefinition Height="330*" />
        </Grid.RowDefinitions>
        <ListView Name="List_Templates" Margin="0,0,401,19">
            <ListView.ContextMenu>
                <ContextMenu Name="Emailtemplate" >Email Templates</ContextMenu>
            </ListView.ContextMenu>
            <ListView.View >
                <GridView Selector.IsSelected="true">
                    <GridView.Columns>
                        <GridViewColumn Header="Template Name" DisplayMemberBinding="{Binding Path=Title}" ></GridViewColumn>
                        <GridViewColumn Header="Uses" DisplayMemberBinding="{Binding Path=Uses}"></GridViewColumn>
                    </GridView.Columns>
                </GridView>
            </ListView.View>


        </ListView>
        <Button Margin="0,277,0,0" Name="Btn_AddNew" HorizontalAlignment="Left" Width="93" Grid.RowSpan="2" IsEnabled="True" Height="23" VerticalAlignment="Top">Add New</Button>
        <Button Margin="99,277,0,0" Name="Btn_Edit" HorizontalAlignment="Left" Width="90" Grid.RowSpan="2" IsEnabled="False" Height="23" VerticalAlignment="Top">Edit</Button>
        <Button Margin="198,277,0,0" Name="Btn_Delete" HorizontalAlignment="Left" Width="93" Grid.RowSpan="2" IsEnabled="False" Height="23" VerticalAlignment="Top">Delete</Button>
        <TextBox Margin="63,16,0,0" Name="Txt_Title" Grid.Row="1" IsReadOnly="True" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="337" />
        <TextBox Margin="63,40,0,0" Name="Txt_Subject" Grid.Row="1" IsReadOnly="True" Height="23" VerticalAlignment="Top" HorizontalAlignment="Left" Width="337" />
        <Label Margin="4,14,0,0" Name="lblSubject" HorizontalAlignment="Left" Width="41" Height="28" Grid.Row="1" VerticalAlignment="Top">Title</Label>
        <Label Margin="4,35,0,0" Name="Label1" Height="28" Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left" Width="47">Subject</Label>
        <ListView Margin="0,0,12,19" Name="List_Bookmarks" IsEnabled="False" HorizontalAlignment="Right" Width="373">
            <ListView.ContextMenu>
                <ContextMenu Name="BookMarks">Email Bookmarks</ContextMenu>
            </ListView.ContextMenu>
            <ListView.View>
                <GridView Selector.IsSelected="True">
                    <GridViewColumn DisplayMemberBinding="{Binding Path=Bookmark_Text}">Bookmark Name</GridViewColumn>
                    <GridViewColumn DisplayMemberBinding="{Binding Path=Bookmark_Desc}">Description</GridViewColumn>
                </GridView>
            </ListView.View>
        </ListView>
        <TextBox AutoWordSelection="True" IsReadOnly="True" Margin="0,277,12,267" MinLines="1" Name="TextBox1" TextWrapping="Wrap" Grid.RowSpan="2" HorizontalAlignment="Right" Width="194">NOTE: Adding an E-Mail template here does not make it available to users. It also has to be added to the Stock Letter Sets for the relevent products.</TextBox>
        <TextBox TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" Margin="12,69,12,12" Name="Txt_Body" Grid.Row="1" IsReadOnly="True" />
        <Button Height="23" IsEnabled="True" Margin="418,14,346,0" Name="Btn_InsertBookmark" VerticalAlignment="Top" Grid.Row="1">Insert Bookmark into</Button>
        <Button HorizontalAlignment="Right" IsEnabled="True" Margin="0,287,241,310" Name="Toggle23" Width="93" Grid.RowSpan="2">Subject</Button>
        <Button Height="23" HorizontalAlignment="Right" IsEnabled="True" Margin="0,26,241,0" Name="Toggle24" VerticalAlignment="Top" Width="93" Grid.Row="1">Body</Button>
        <TextBox Height="23" HorizontalAlignment="Right" IsReadOnly="True" Margin="0,12,382,0" Name="Txt_OldSubject" VerticalAlignment="Top" Width="17" Visibility="Hidden" />
        <TextBox Height="23" HorizontalAlignment="Right" IsReadOnly="True" Margin="0,41,382,0" Name="Txt_OldBody" VerticalAlignment="Top" Width="17" Visibility="Hidden" />
        <TextBox Height="23" HorizontalAlignment="Right" IsReadOnly="True" Margin="0,72,382,0" Name="Txt_OldTitle" VerticalAlignment="Top" Width="17" Visibility="Hidden" />
        <TextBox Height="23" HorizontalAlignment="Right" IsReadOnly="True" Margin="0,102,382,0" Name="Txt_CursorPosition" VerticalAlignment="Top" Width="17" Visibility="Hidden" />
        <TextBox HorizontalAlignment="Right" IsReadOnly="True" Margin="0,131,382,136" Name="Txt_SLCursorPosition" Width="17" Visibility="Hidden" />
        <Button Height="23" HorizontalAlignment="Left" IsEnabled="True" Margin="302,277,0,0" Name="Btn_Close" VerticalAlignment="Top" Width="93" Grid.RowSpan="2">Close</Button>
    </Grid>
</Window>
